package com.loren.tetris.data.constant;

import java.awt.*;

public class DataConstant {

    /**
     * 游戏面板的宽度
     */
    public static final int GAME_PANEL_WIDTH = 980;

    /**
     * 游戏面板的高度
     */
    public static final int GAME_PANEL_HEIGHT = 640;

    /**
     * 图标路径
     */
    public static final String PATH_GAME_ICON = "image/icon.png";

    /**
     * 本地记录路径
     */
    public static final String PATH_GAME_DISK_RECORD = "data/record.dat";

    /**
     * 边框的颜色
     */
    public static final Color COLOR_BOX_BORDER = new Color(0, 170, 238);

    /**
     * 边框的标题颜色
     */
    public static final Color COLOR_BOX_TITLE = new Color(238, 122, 36);

    /**
     * 黑色
     */
    public static final Color COLOR_BLACK = new Color(0, 0, 0);

    /**
     * 白色
     */
    public static final Color COLOR_WHITE = new Color(255, 255, 255);

    /**
     * 红色
     */
    public static final Color COLOR_RED = new Color(255, 0, 0);

    /**
     * 橙色
     */
    public static final Color COLOR_ORANGE = new Color(255, 125, 0);

    /**
     * 黄色
     */
    public static final Color COLOR_YELLOW = new Color(255, 255, 0);

    /**
     * 绿色
     */
    public static final Color COLOR_GREEN = new Color(0, 255, 0);

    /**
     * 青色
     */
    public static final Color COLOR_CYAN = new Color(0, 255, 255);

    /**
     * 蓝色
     */
    public static final Color COLOR_BLUE = new Color(81, 79, 255);

    /**
     * 紫色
     */
    public static final Color COLOR_PURPLE = new Color(255, 0, 255);

    /**
     * 方块冻结的颜色
     */
    public static final Color COLOR_BLOCK_FROZEN_BORDER = new Color(212, 212, 212);

    /**
     * 方块冻结的颜色
     */
    public static final Color COLOR_BLOCK_FROZEN = new Color(55, 55, 55);

    /**
     * 游戏时间的颜色
     */
    public static final Color COLOR_GAME_TIME = new Color(97, 255, 187);

    /**
     * 进度条的高度
     */
    public static final int PROGRESS_BAR_HEIGHT = 30;

    /**
     * 进度条的背景色
     */
    public static final Color PROGRESS_BAR_COLOR = new Color(158, 16, 123, 100);

    /**
     * 阴影的背景色
     */
    public static final Color GAME_SHADOW_COLOR = new Color(165, 30, 255, 50);

    /**
     * 方块圆角的程度
     */
    public static final int BLOCK_ROUNDNESS = 5;

    /**
     * 方块的大小
     */
    public static final int BLOCK_SIZE = 30;

    /**
     * 下一个方块区域的方块大小
     */
    public static final int BLOCK_NEXT_SIZE = 25;

    /**
     * 是否启用消行闪烁
     */
    public static final boolean ENABLE_TWINKLE = true;

    /**
     * 消行时闪烁的次数
     */
    public static final int REMOVE_LINE_TWINKLE_COUNT = 10;

    /**
     * 消行时闪烁的毫秒数
     */
    public static final long REMOVE_LINE_TWINKLE_TIME = 50L;

    /**
     * 游戏消行对应的分数的阶梯
     */
    public static final int[] GAME_SCORE_LADDER = {5, 12, 21, 32};

    /**
     * 游戏下落的速度 - 睡眠的毫秒数
     */
    public static final long GAME_BLOCK_SHAPE_SPEED = 1200L;

}
